<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在html中使用ESModule</title>
</head>
<body>
    <script type="module">
        /* 在当前目录输入指令http-server开启服务器查看 */
        import data from './module/main.js'

        console.log(data);
    </script>
</body>
</html>